package com.ac.api.process_history.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ac.api.process_history.entity.ProcessHistory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 工序任务历史记录表 服务类
 * </p>
 *
 * @author dc
 * @since 2025-06-11
 */
public interface ProcessHistoryService extends IService<ProcessHistory> {

    /**
     * 条件查询
     * @param example
     * @return
     */
    List<ProcessHistory> list(ProcessHistory example);

    /**
     * 分页查询
     * @param example
     * @param page
     * @return
     */
    IPage<ProcessHistory> page(ProcessHistory example,IPage page);


    @Transactional
    void addHistory(Integer id, Integer lineId, String status);
}
